home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / WE-BREAK.ZIP / P4DEF_05.INC < prev    next >
Encoding:
Text File  |  1997-02-28  |  5.1 KB  |  144 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //
  4. // p4def_05.inc
  5. //
  6. // Written By: Paul T. Dawson
  7. //             ptdawson@voicenet.com
  8. //             http://www.voicenet.com/~ptdawson
  9. //
  10. // All code and techniques are PUBLIC DOMAIN - have fun with it!
  11. //
  12. //------------------------------------------------------------------->
  13. //
  14. // This file builds one of the "dummies".
  15. //
  16. //------------------------------------------------------------------->
  17. //
  18. // Declare the *textures* for everything.
  19.  
  20.         #declare P4_Eye_Texture = texture { pigment { Gray50 } }
  21.         #declare P4_Glasses_Texture = texture { pigment{Gray50} }
  22.         
  23.         #declare P4_Hair_Texture = texture {
  24.         pigment { Gray60 } normal { crackle 4 scale < 1, 10, 1 > } }
  25.         
  26.         #declare P4_Hat_Texture = texture { pigment { Gray40 } }
  27.         #declare P4_Lip_Texture = texture { pigment { Gray60 } }
  28.         
  29.         #declare P4_Shirt_Texture = texture {
  30.                 pigment { image_map { gif "shirt.gif" interpolate 2 }
  31.                 scale <8,8,0.1> } normal { crackle 0.3 scale 0.5 } }
  32.  
  33.         #declare P4_Shoe_Texture = texture { pigment{ Gray50 } }
  34.         
  35.         #declare P4_Shorts_Texture = texture {
  36.                 pigment { Gray40 } normal { crackle 2 scale 0.5 } }
  37.  
  38.         #declare P4_Skin_Texture = texture { pigment { Gray80 } }
  39.  
  40. //------------------------------------------------------------------->
  41. //
  42. // Now choose *types* of things. You will have to read the directions
  43. // to see what numbers are legal here!
  44.  
  45.         #declare P4_Eye_Type = 1
  46.         #declare P4_Glasses_Type = 0
  47.         #declare P4_Hair_Type = 1
  48.         #declare P4_Hand_Type = 1
  49.         #declare P4_Hat_Type = 0
  50.         #declare P4_Mouth_Type = 1
  51.         #declare P4_Nose_Type = 1
  52.         #declare P4_Shirt_Type = 2
  53.         #declare P4_Shoe_Type = 1
  54.         #declare P4_Shorts_Type = 2
  55.  
  56. //------------------------------------------------------------------->
  57. //
  58. // Set the sizes of various things.
  59.  
  60.         #declare P4_Leg_Length = 34
  61.         #declare P4_Neck_Height = 3
  62.         #declare P4_Shirt_Height = 22
  63.         #declare P4_Shorts_Height = 15
  64.  
  65. //------------------------------------------------------------------->
  66. //
  67. // Choose the rotation values. Please read the directions!
  68.  
  69.         #declare P4_Hat_Rotate = < 20, 0, 0 >
  70.         #declare P4_Neck_Rotate = < 30, -30, 0 >
  71.         #declare P4_Waist_Rotate = < -20, 20, 0 >
  72.  
  73.         #declare P4_Left_Hand_Rotate = < 0, 0, 30 >
  74.         #declare P4_Right_Hand_Rotate = < 90, 0, 0 >
  75.  
  76.         #declare P4_Left_Elbow_Rotate = < 00, -80, 0 >
  77.         #declare P4_Right_Elbow_Rotate = < 00, 70, 0 >
  78.  
  79.         #declare P4_Left_Eyelid_Rotate = -40
  80.         #declare P4_Right_Eyelid_Rotate = -40
  81.  
  82.         #declare P4_Left_Knee_Rotate = < -120, 0, 0 >
  83.         #declare P4_Right_Knee_Rotate = < -120, 0, 0 >
  84.  
  85.         #declare P4_Left_Leg_Rotate = < 80, 0, -10 >
  86.         #declare P4_Right_Leg_Rotate = < 80, 0, 10 >
  87.  
  88.         #declare P4_Left_Shoulder_Rotate = < 30, -60, 20 >
  89.         #declare P4_Right_Shoulder_Rotate = < 0, 60, -50 >
  90.  
  91. //------------------------------------------------------------------->
  92. //
  93. // Create the optional "holding" object. This will go into the left
  94. // hand, and move with the hand. This is optional - just comment it
  95. // out if not needed, and set the flag to "false".
  96. //
  97. // The flag is necessary to prevent person #2 from carrying the object
  98. // that you gave to person #1. Set it to true or false.
  99.  
  100.         #declare P4_Holding_Flag = true
  101.  
  102.         #declare P4_Holding_Object = union {
  103.                 cylinder{<0,-6,0><0,4,0>,1.5 pigment{Gray40}}
  104.                 cone{<0,4,0>,1.5 <0,6,0>,0.1 pigment{Gray40} }
  105.                 cone { < 0, 6, 0 >, 0.1 < -30, 6, 0 >, 1 pigment {
  106.                         color rgbf < 0.7, 0.7, 0.7, 0.8 > } }
  107.                 } // End of union.
  108.  
  109. //------------------------------------------------------------------->
  110. //
  111. // Make another optional object - a "bracelet". This also has a flag
  112. // to set on/off. This prevents duplicate bracelets! The bracelet
  113. // should be at <0,0,0>, just like a standard torus.
  114.  
  115.         #declare P4_Bracelet_Flag = false
  116.  
  117. //------------------------------------------------------------------->
  118. //
  119. // Despite my attempts at using "realistic inches" as units, the
  120. // people always seem to end up 8 or 9 feet tall. This variable lets
  121. // you scale the person down to a normal size. Use the P4_TEST.POV
  122. // scene to see how tall your person actually is!
  123.  
  124.         #declare P4_Total_Scale = 70/100
  125.  
  126. //------------------------------------------------------------------->
  127. //
  128. // This is the height to move the person up, so his/her feet are on
  129. // the floor. Sorry, but because of bendable legs, this has to be
  130. // adjusted manually (by YOU). 8-)
  131.  
  132.         #declare P4_Y_Adjust = 28
  133.  
  134. //------------------------------------------------------------------->
  135. //
  136. // Now call "p4_main.inc" to create the object.
  137.  
  138.         #include "p4_main.inc"
  139.  
  140. //------------------------------------------------------------------->
  141. //
  142. // End of this file.
  143.  
  144.